import button from './form/zButton.vue'
import input from './form/zInput.vue'
import zitem from './form/zItem.vue'
import zForm from './form/zForm.vue'
const components = [
    button,
    input,
    zitem,
    zForm
]
//vue.use使用时，必须要有install方法。参数就是vue。
const install  = (Vue)=>{
    for(var key in components){
        Vue.component(components[key].name,components[key])
    }
}
export default {
    install
}